package com.kvn.dubbo.service;

import com.kvn.dubbo.DemoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.QueryParam;

/**
 * Created by wangzhiyuan on 2019/1/29
 */
@Service
public class DefaultDemoService implements DemoService {
    private static final Logger log = LoggerFactory.getLogger(DefaultDemoRestService.class);


    @Override
    public String sayHello(String name) {
//        throw new RuntimeException(name);
        log.info("----调用 sayHello,name={}", name);
        return "Hello, " + name + " (From DefaultDemoService)";
    }
}
